
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
        .radio-inline input[type=radio] {
            margin-top: 4px
        }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">费用与销量排名</h2>
    </div>
    <!-- 标题 -->
     <div>
    <form action="" class="form-inline">
      <table class="tab-content table-bordered table" border="1" style="margin-top:0">
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">姓名：</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">部门：</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">岗位：</label></td>
            <td><input type="text" class="form-control" name=""></td>
    </tr>
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">排序类型：</label></td>
            <td colspan="5">
               <label class="radio-inline">
                    <input type="radio" name="inlineRadioOptions" checked id="inlineRadio1" value="option2">按费用差异额排序
               </label>
               <label class="radio-inline">
                    <input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option3">按费用差异率排序
               </label>
               <label class="radio-inline">
                    <input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option4">按销量差异额排序
               </label>
                <label class="radio-inline">
                    <input type="radio" name="inlineRadioOptions" id="inlineRadio4" value="option5">按销量差异率排序
               </label>
            </td>
    </tr>
      <tr>
       <td colspan="6" class="text-center">
           <button class="btn btn-info query" >查询</button>
           <button class="btn btn-info emptyIf" type="button">清空查询条件</button>
           <button class="btn btn-info LendExcel" type="button">导出Excel</button>
            </td>
          </tr>
      </table>
    
      <table class="table row-margin-top table-bordered text-center bud_hei">
                 <tr class="info">
                        <th class="text-center" rowspan="2">序号</th>
                        <th class="text-center" rowspan="2">姓名</th>
                        <th class="text-center" rowspan="2">部门</th>
                        <th class="text-center" rowspan="2">岗位</th>
                        <th class="text-center" rowspan="2">手机</th>
                        <th class="text-center" colspan="8">本年度(财年)</th>
                     
                  </tr>
                  <tr class="info">
					   <th class="text-center">预计费用(元)</th>
                        <th class="text-center">实际费用(元)</th>
                        <th class="text-center">差异(元)</th>
                        <th class="text-center">差异率</th>
                        <th class="text-center">预计销量(元)</th>
                        <th class="text-center">实际销量(元)</th>
                        <th class="text-center">差异(元)</th>
                        <th class="text-center">差异率</th>
                  </tr>
                <tbody>
                    <tr>
                      <td>1</td>
                      <td>余通</td>
                      <td>华南大区</td>
                      <td>华东大区经理</td>
                      <td>12312312312</td>
                      <td class="ObjectNum text-right">173367.30</td>
                      <td class="ObjectNum text-right">173367.30</td>
                      <td class="ObjectNum text-right">0.06</td>
                      <td class="text-right"><span class="ObjectNum1">0</span>%</td>
                      <td class="ObjectNum text-right">14541319</td>
                      <td class="ObjectNum text-right">0</td>
                      <td class="ObjectNum text-right">-14541319</td>
                      <td class="text-right"><span class="ObjectNum1">0</span>%</td>
                    </tr>
                     <tr>
                      <td>2</td>
                      <td>余通</td>
                      <td>华南大区</td>
                      <td>华东大区经理</td>
                        <td>12312312312</td>
                      <td class="ObjectNum text-right">173367.30</td>
                      <td class="ObjectNum text-right">-173367.30</td>
                      <td class="ObjectNum text-right">0.06</td>
                      <td class="text-right"><span class="ObjectNum1">-0</span>%</td>
                      <td class="ObjectNum text-right">14541319</td>
                      <td class="ObjectNum text-right">0</td>
                      <td class="ObjectNum text-right">14541319</td>
                      <td class="text-right"><span class="ObjectNum1">0</span>%</td>
                    </tr>
                      <tr>
                      <td>3</td>
                      <td>余通</td>
                      <td>华南大区</td>
                      <td></td>
                       <td>12312312312</td>
                      <td class="ObjectNum text-right">173367.30</td>
                      <td class="ObjectNum text-right">-173367.30</td>
                      <td class="ObjectNum text-right">0.06</td>
                      <td class="text-right"><span class="ObjectNum1">0</span>%</td>
                      <td class="ObjectNum text-right">14541319</td>
                      <td class="ObjectNum text-right">0</td>
                      <td class="ObjectNum text-right">14541319</td>
                      <td class="text-right"><span class="ObjectNum1">0</span>%</td>
                    </tr>
                </tbody>  
      </table>
       <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
   
        $(document).ready(function(){
          var $ObjectNum =$(".ObjectNum");
           var $ObjectNum1=$(".ObjectNum1");
           var $ObjectNum1p=$ObjectNum1.parent();
             toNum($ObjectNum);
             toNum($ObjectNum1);
             changeColor($ObjectNum)
            
             changeColor1($ObjectNum1)
        })

           function changeColor(numObj)
         {
             for ( var i = 0; i < numObj.length; i++)
             {
                 var obj = numObj[i];
                 var num = parseFloat (obj.firstChild.nodeValue);
                 obj.style.backgroundColor = num< 0 ? "red" : "#fff";
             }
    };

      function changeColor1(numObj)
         {
             for ( var i = 0; i < numObj.length; i++)
             {
                 var obj = numObj[i];
                 var num = parseFloat (obj.firstChild.nodeValue);
                 obj.parentNode.style.backgroundColor= num< 0 ? "red" : "#fff";
             }
    };
    </script>
</body>

</html>
